package com.apex.crm.dao;

import com.apex.crm.base.BaseMapper;
import com.apex.crm.vo.Permission;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission,Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    //int insertSelective(Permission record);

    Permission selectByPrimaryKey(Integer id);

    //int updateByPrimaryKeySelective(Permission record);

    int updateByPrimaryKey(Permission record);

    List<Integer> queryRoleAllModIds(Integer roleId);

    Integer countPermissionBymoduleId(Integer mid);

    Integer deletePermissionByModuleId(Integer mid);

    Integer selectCountByRoleId(Integer roleId);

    Integer deletePermissionByRoleId(Integer roleId);
}